-use std::path::Path;
-
use cargo::ops;
use cargo::core::{SourceId, GitReference};
use cargo::util::{CliResult, Config, ToUrl, human};
};
SourceId::for_git(&url, gitref)
} else if let Some(path) = options.flag_path {
- try!(SourceId::for_path(Path::new(&path)))
+ try!(SourceId::for_path(&config.cwd().join(path)))
} else {
try!(SourceId::for_central(config))
};
assert_that(cargo_process("install").arg("--path").arg(p.root()),
execs().with_status(0));
assert_that(cargo_home(), has_installed_exe("foo"));
+ assert_that(cargo_process("install").arg("--path").arg(".").cwd(p.root()),
+ execs().with_status(101).with_stderr("\
+binary `foo[..]` already exists in destination as part of `foo v0.1.0 [..]`
+"));
});
test!(multiple_crates_error {